<?php
$page = new BUIControl('manageBookingPage');
$activeOperation = Blyn::app()->getActiveOperation();
$wxMenu = new BUIWXMenu($activeOperation);
?>
<div class="tabbable tabs-left" style="margin-top: 15px;"> <!-- Only required for left/right tabs -->
    <ul class="nav nav-tabs" style="margin-bottom: 15px">
        <li class="active"><a href="#tab1" data-toggle="tab"><?php echo '订单列表'; ?></a></li>
        <li class=""><a href="#tab2" data-toggle="tab"><?php echo '微信菜单'; ?></a></li>
    </ul>
    <div class="tab-content">       
        <div class="tab-pane active" id="tab1" style="min-height: 380px;margin-right:2px;">    
            <?php
            $control1 = new BUIControl('manageBooking_order_list');
            $control1->addRenderView('manageBooking_order_list');
            $control1->render();
            ?>
        </div>
        <div class="tab-pane" id="tab2" style="min-height: 380px;margin-right:2px;">    
            <?php
             //manageBooking，默认存储一个“管理预订”菜单
            $wxControl = new BUIWXControl('manageBooking');
                    echo $wxControl->getLink(
                    array('name' => '管理预订', 'id' => 'manageBooking'), array(
                    'htmlOptions' => array(
                    'class' => 'btn', 'target' => '_blank'),
                    'theme' => 'mb_bootstrap'
                    )
            );
            $manageBookingUrl = $wxControl->getLinkUrl(
            array('name' => '管理预订', 'id' => 'manageBooking'), array(
            'theme' => 'mb_bootstrap'
            ));
            $bAppCommon = new BAppCommon();
            $bAppCommon->addOperationMenuToSpace(array('manageBooking'=>'管理预订'.'&%@'.$manageBookingUrl)); 
            ?>   
        </div>
    </div>
</div>



